//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package org.ares.app.demo.entities.sand;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(
        name = "trav_info_spot"
)
@NamedQuery(
        name = "Stravelspot.findAll",
        query = "SELECT s FROM Stravelspot s"
)
public class Stravelspot {
    @Id
    private int id;
    private String spotname;
    private String opentime;
    private String closetime;
    @ManyToOne
    @JoinColumn(
            name = "lineid"
    )
    private Stravelinfo stravelinfo;

    public Stravelspot() {
    }

    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSpotname() {
        return this.spotname;
    }

    public void setSpotname(String spotname) {
        this.spotname = spotname;
    }

    public String getOpentime() {
        return this.opentime;
    }

    public void setOpentime(String opentime) {
        this.opentime = opentime;
    }

    public String getClosetime() {
        return this.closetime;
    }

    public void setClosetime(String closetime) {
        this.closetime = closetime;
    }

    public Stravelinfo getStravelinfo() {
        return this.stravelinfo;
    }

    public void setStravelinfo(Stravelinfo stravelinfo) {
        this.stravelinfo = stravelinfo;
    }

    public String toString() {
        return "Stravelspot [id=" + this.id + ", spotname=" + this.spotname + ", opentime=" + this.opentime + ", closetime=" + this.closetime + ", stravelinfo=" + this.stravelinfo + "]";
    }
}
